﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PPSignSDKDemoForm
{
    public partial class CalDlg : Form
    {
        public CalDlg()
        {
            InitializeComponent();
        }

        private void btnStart_Click(object sender, EventArgs e)
        {
            btnEnd.Enabled = true;
            ImportDll.PPL398_BeginCalibrate(ImportDll.DEVICE_TYPE_ID.PPL398_DEVICE);
            btnStart.Enabled = false;

        }

        private void btnEnd_Click(object sender, EventArgs e)
        {
            Int32 nRes = ImportDll.PPL398_EndCalibrate(ImportDll.DEVICE_TYPE_ID.PPL398_DEVICE, true);
            if (nRes == 0)
                this.Close();

        }

        private void OKbtn_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
